package org.jetnuke.dao;

import java.util.List;

import org.jetnuke.entities.StoriesCat;

/**
 * @author <a href="ginger547@gmail.com">ginger547</a>
 * @version 2.0
 * @since 2.0
 */
public interface StoriesCatDAO {
	public StoriesCat retrieveByPK(int storyCatId) throws Exception;

	public void deleteByPK(int storyCatId) throws Exception;

	public List selectAll() throws Exception;

	public List selectAllOrderTitle() throws Exception;

	public List selectOrderCounterDesc(int i) throws Exception;

	/**
	 * @param cat
	 */
	public int addNew(StoriesCat cat) throws Exception;

	/**
	 * @param cat
	 */
	public void update(StoriesCat cat) throws Exception;

	/**
	 * @param catid
	 */
	public void incCounter(int catid) throws Exception;
}
